home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mintmant
/
fchown.txt
< prev
next >
Wrap
Text File
|
1992-03-24
|
1KB
|
64 lines
Fchown(2) Dec. 12, 1991 Fchown(2)
NAME
Fchown - change a file's ownership
SYNOPSIS
LONG Fchown( char *name, WORD uid, WORD gid );
DESCRIPTION
Fchown changes a file's user and group ownership to uid and
gid respectively. These ownerships determine access rights
to the file.
Only a process with effective uid 0 or whose effective uid
matches the user ownership of the file may make this call.
In the latter case, the new uid must match the old one, and
the calling process must also be a member of the group
specified by gid.
RETURNS
0 on success
EACCDN if the calling process has an effective uid which
differs from the owner of the file and which is not 0.
EINVFN if the file system on which the file is located does
not support a notion of ownership. (This is true of the nor-
mal TOS file system.)
EFILNF if the file is not found
EPTHNF if the path to the file is not found.
SEE ALSO
Fchmod(2), Fxattr(2)
BUGS
Most file systems don't understand file ownership.
In practice, the call is useful only to processes with
effective uid 0.
Version 0.92 Last change: MiNT Programmer's Manual 1